<?php
namespace Gallery\Controller;
use Think\Controller;
class IndexController extends Controller {

    public function get_gallery(){
        $gallery_model = D('Gallery/Gallery');
        $map['status'] = array('eq', 1);
        $list = $gallery_model->where($map)->order('sort desc')->select();;
        return $list;
    }
}